
local score = ac.score
score.create_limit2('捕鱼积分',1,999,300)

ac.allowEvents['游戏难度'] = true
ac.game:event '玩家-游戏难度'(function(_,player,index)
    local index = tonumber(index)
    ac.hard = index
    if index==nil then
        ac.loop(10*60*1000,function(t)
            ac.each_player(function(player)
                player:add('捕鱼积分',5)
            end)
        end)
    end
end)

ac.allowEvents['游戏通关'] = true
ac.game:event '玩家-游戏通关'(function(_,player)
    local index = tonumber(index)
    if ac.hard then
        ac.each_player(function(player)
            player:add('捕鱼积分',20)
        end)
    end
end)



ac.allowEvents['获取捕鱼积分'] = true
ac.game:event '玩家-获取捕鱼积分'(function(_,player)
    player:sendWar3('捕鱼积分',player:get('捕鱼积分',0))
end)

ac.game:event '玩家-初始化数据'(function(_,player)
    player:notify('玩家-获取捕鱼积分',player)
end)